#include "StdAfx.h"
#include "tm.h"
#include <time.h>

namespace Zen{namespace utility{


	std::string current_time()
	{
		time_t t = time(0); 
		char tmp[128] = {0}; 
		strftime( tmp, sizeof(tmp), "%Y-%m-%d %H:%M:%S", localtime(&t) ); 
		return std::string(tmp);	
	}

	std::wstring current_timew()
	{
		time_t t = time(0); 
		wchar_t tmp[128] = {0}; 
		wcsftime( tmp, 128, L"%Y-%m-%d %H:%M:%S", localtime(&t) ); 
		return std::wstring(tmp);	
	}


}}